package com.paireach.szwolaiyun.mode;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/6/23.
 */
public class SignResultMode {

    private boolean resultFlag=false;
    private String message;

    public boolean getResultFlag() {
        return resultFlag;
    }

    public void setResultFlag(boolean resultFlag) {
        this.resultFlag = resultFlag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void init(String jsonStr){
        try {
            JSONObject jsonObject=new JSONObject(jsonStr);
            setResultFlag(jsonObject.optBoolean("resultFlag"));
            setMessage(jsonObject.optString("message"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
